//
//  MHMyWalletViewModel.m
//  MiaoCircle
//
//  Created by 许正荣 on 2018/7/24.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHMyWalletViewModel.h"
#import "MHInComeViewModel.h"
#import "MHOderDetailViewModel.h"
#import "MHRedPacketOrderViewModel.h"
#import "MHRedPacketOrderContainerViewModel.h"
@implementation MHMyWalletViewModel

-(void)initialize
{
    [super initialize];
    self.translucentNavigationBar = YES;
    self.prefersNavigationBarBottomLineHidden = YES;
    MHCommonGroupViewModel *group0 = [MHCommonGroupViewModel groupViewModel];
    ///账号与安全
    MHCommonArrowItemViewModel *income = [MHCommonArrowItemViewModel itemViewModelWithTitle:@"收入明细" icon:@"profilce_income"];
    income.destViewModelClass = [MHInComeViewModel class];
    income.model = @1;
    MHCommonArrowItemViewModel *purchase = [MHCommonArrowItemViewModel itemViewModelWithTitle:@"支出明细" icon:@"profilce_purchase"];
    purchase.destViewModelClass = [MHInComeViewModel class];
    purchase.model = @2;
    MHCommonArrowItemViewModel *tixian = [MHCommonArrowItemViewModel itemViewModelWithTitle:@"提现明细" icon:@"profilce_tixian"];
    
    MHCommonArrowItemViewModel *history = [MHCommonArrowItemViewModel itemViewModelWithTitle:@"红包历史" icon:@"ic_bill_package"];
    history.destViewModelClass = MHRedPacketOrderContainerViewModel.class;
    
    group0.itemViewModels = @[ income,purchase,tixian,history];
    tixian.destViewModelClass = [MHOderDetailViewModel class];
    
    
    self.dataSource = @[group0 ];
}
@end
